<?php 
if(isset($_GET['identifiant_rib']))
$req=mysql_query("update contrat set identifiant_rib='".$_GET['Identifiant_rib']."' where Numero_contrat='".$_SESSION['contrat']."'")or die(mysql_error());
if($req)
header("location: index.php?rattacher=1");
else 
header("location: index.php?rattacher=0");
?>